fromJson static method

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

Implementation

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

  return InputFileGenerated(
    originalPath: (json['original_path'] as String?) ?? '',
    conversion: (json['conversion'] as String?) ?? '',
    expectedSize: (json['expected_size'] as int?) ?? 0,
  );
}