$UikProductScreenTagsRowPropsFromJson function

UikProductScreenTagsRowProps $UikProductScreenTagsRowPropsFromJson(
  1. Map<String, dynamic> json
)

Implementation

UikProductScreenTagsRowProps $UikProductScreenTagsRowPropsFromJson(
    Map<String, dynamic> json) {
  final UikProductScreenTagsRowProps uikProductScreenTagsRowProps =
      UikProductScreenTagsRowProps();
  final String? id = jsonConvert.convert<String>(json['id']);
  if (id != null) {
    uikProductScreenTagsRowProps.id = id;
  }

  final List<dynamic>? array =
      jsonConvert.convert<List<dynamic>>(json['array']);
  if (array != null) {
    for (int i = 0; i < array.length; i++)
      uikProductScreenTagsRowProps.array
          .add(UikTags(WidgetType.UikText, UikTagsProps.fromJson(array[i])));
  }

  final UikAction? action = jsonConvert.convert<UikAction>(json['action']);
  if (action != null) {
    uikProductScreenTagsRowProps.action = action;
  }
  return uikProductScreenTagsRowProps;
}