GetMergeOptionsOutput.fromJson constructor

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

Implementation

factory GetMergeOptionsOutput.fromJson(Map<String, dynamic> json) {
  return GetMergeOptionsOutput(
    baseCommitId: json['baseCommitId'] as String,
    destinationCommitId: json['destinationCommitId'] as String,
    mergeOptions: (json['mergeOptions'] as List)
        .whereNotNull()
        .map((e) => (e as String).toMergeOptionTypeEnum())
        .toList(),
    sourceCommitId: json['sourceCommitId'] as String,
  );
}