MergeHunk.fromJson constructor

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

Implementation

factory MergeHunk.fromJson(Map<String, dynamic> json) {
  return MergeHunk(
    base: json['base'] != null
        ? MergeHunkDetail.fromJson(json['base'] as Map<String, dynamic>)
        : null,
    destination: json['destination'] != null
        ? MergeHunkDetail.fromJson(
            json['destination'] as Map<String, dynamic>)
        : null,
    isConflict: json['isConflict'] as bool?,
    source: json['source'] != null
        ? MergeHunkDetail.fromJson(json['source'] as Map<String, dynamic>)
        : null,
  );
}