GitRepoVolumeSource.fromJson constructor
Creates a GitRepoVolumeSource from JSON data.
Implementation
factory GitRepoVolumeSource.fromJson(Map<String, dynamic> json) {
final tempDirectoryJson = json['directory'];
final tempRepositoryJson = json['repository'];
final tempRevisionJson = json['revision'];
final String? tempDirectory = tempDirectoryJson;
final String tempRepository = tempRepositoryJson;
final String? tempRevision = tempRevisionJson;
return GitRepoVolumeSource(
directory: tempDirectory,
repository: tempRepository,
revision: tempRevision,
);
}