CaptionLayoutEntity.fromJson constructor
CaptionLayoutEntity.fromJson(
- Map<String, dynamic> jsonRes
)
Implementation
factory CaptionLayoutEntity.fromJson(Map<String, dynamic> jsonRes) =>
CaptionLayoutEntity(
layoutDirection: asT<String?>(jsonRes['layout_direction']) ?? 'row',
mainCaption: jsonRes['main_caption'] == null
? null
: CaptionEntity.fromJson(
asT<Map<String, dynamic>>(jsonRes['main_caption'])!),
subCaption: jsonRes['sub_caption'] == null
? null
: CaptionEntity.fromJson(
asT<Map<String, dynamic>>(jsonRes['sub_caption'])!),
);