$UikListTileContainerPropsFromJson function

UikListTileContainerProps $UikListTileContainerPropsFromJson(
  1. Map<String, dynamic> json
)

Implementation

UikListTileContainerProps $UikListTileContainerPropsFromJson(
    Map<String, dynamic> json) {
  final UikListTileContainerProps uikListTileContainerProps =
      UikListTileContainerProps();

  final List<UikListTiles>? ll =
      jsonConvert.convert<List<UikListTiles>>(json['ll']);
  if (ll != null) {
    for (int i = 0; i < ll.length; i++) {
      uikListTileContainerProps.ll.add(UikListTiles(
          WidgetType.UikText, UikListTilesProps.fromJson(json['ll'])));
    }
  }

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