fromJson static method

ExportedShot fromJson(
  1. Map<String, Object?> json
)

Implementation

static ExportedShot fromJson(Map<String, Object?> json) => ExportedShot(
  image: json['image'] as String? ?? '',
  scenario: json['scenario'] as String? ?? '',
  step: json['step'] as String? ?? '',
  stepIndex: _int(json['stepIndex']),
  rect: ExportedRect.fromJson(json['rect']),
  charStart: json['charStart'] as int?,
  charEnd: json['charEnd'] as int?,
  locale: json['locale'] as String?,
  device: json['device'] as String?,
  offstage: json['offstage'] as bool? ?? false,
  overflowed: json['overflowed'] as bool? ?? false,
);