CreateCommitOutput.fromJson constructor
CreateCommitOutput.fromJson(
- Map<String, dynamic> json
)
Implementation
factory CreateCommitOutput.fromJson(Map<String, dynamic> json) {
return CreateCommitOutput(
commitId: json['commitId'] as String?,
filesAdded: (json['filesAdded'] as List?)
?.whereNotNull()
.map((e) => FileMetadata.fromJson(e as Map<String, dynamic>))
.toList(),
filesDeleted: (json['filesDeleted'] as List?)
?.whereNotNull()
.map((e) => FileMetadata.fromJson(e as Map<String, dynamic>))
.toList(),
filesUpdated: (json['filesUpdated'] as List?)
?.whereNotNull()
.map((e) => FileMetadata.fromJson(e as Map<String, dynamic>))
.toList(),
treeId: json['treeId'] as String?,
);
}