decode static method

UITextBlock? decode(
  1. dynamic json
)

Implementation

static UITextBlock? decode(dynamic json) {
  if (json == null) {
    return null;
  }
  if (json is! Map<String, dynamic>) {
    return null;
  }

  return UITextBlock(
    id: StringDecoder.decode(json['id']),
    data: UITextBlockData.decode(json['data']),
  );
}