fromJson static method

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

Implementation

static VideoStoryboard? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return VideoStoryboard(
    storyboardFile: File.fromJson(tdMapFromJson(json['storyboard_file'])),
    width: (json['width'] as int?) ?? 0,
    height: (json['height'] as int?) ?? 0,
    mapFile: File.fromJson(tdMapFromJson(json['map_file'])),
  );
}