TextCustomSectionDataDto.fromJson constructor

TextCustomSectionDataDto.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory TextCustomSectionDataDto.fromJson(Map<String, dynamic> json) {
  return TextCustomSectionDataDto(
    text: json["text"] as String?,
    type: decodeCustomSectionDataTypeDto(
        CustomSectionDataTypeDtoEnumMap, json["type"] as String),
    sequenceNumber: json["sequenceNumber"] as int,
    customSectionId: json["customSectionId"] as String?,
  );
}