fromJson static method

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

Implementation

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

  return PassportElementErrorSourceFile(
    fileIndex: (json['file_index'] as int?) ?? 0,
  );
}