ConflictMetadata.fromJson constructor

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

Implementation

factory ConflictMetadata.fromJson(Map<String, dynamic> json) {
  return ConflictMetadata(
    contentConflict: json['contentConflict'] as bool?,
    fileModeConflict: json['fileModeConflict'] as bool?,
    fileModes: json['fileModes'] != null
        ? FileModes.fromJson(json['fileModes'] as Map<String, dynamic>)
        : null,
    filePath: json['filePath'] as String?,
    fileSizes: json['fileSizes'] != null
        ? FileSizes.fromJson(json['fileSizes'] as Map<String, dynamic>)
        : null,
    isBinaryFile: json['isBinaryFile'] != null
        ? IsBinaryFile.fromJson(json['isBinaryFile'] as Map<String, dynamic>)
        : null,
    mergeOperations: json['mergeOperations'] != null
        ? MergeOperations.fromJson(
            json['mergeOperations'] as Map<String, dynamic>)
        : null,
    numberOfConflicts: json['numberOfConflicts'] as int?,
    objectTypeConflict: json['objectTypeConflict'] as bool?,
    objectTypes: json['objectTypes'] != null
        ? ObjectTypes.fromJson(json['objectTypes'] as Map<String, dynamic>)
        : null,
  );
}