Conflict.fromJson constructor

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

Implementation

factory Conflict.fromJson(Map<String, dynamic> json) {
  return Conflict(
    conflictMetadata: json['conflictMetadata'] != null
        ? ConflictMetadata.fromJson(
            json['conflictMetadata'] as Map<String, dynamic>)
        : null,
    mergeHunks: (json['mergeHunks'] as List?)
        ?.whereNotNull()
        .map((e) => MergeHunk.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}