Source.fromMap constructor

Source.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory Source.fromMap(Map<String, dynamic> map) {
  return Source(
    gitUri: (() { final guardedValue = map['gitUri']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    repoSource: (() { final guardedValue = map['repoSource']; if (guardedValue == null) return null; return pulumi.Input.fromValue(RepoSource.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    storageSource: (() { final guardedValue = map['storageSource']; if (guardedValue == null) return null; return pulumi.Input.fromValue(StorageSource.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
  );
}