AppVersionSnapshotAppVariableDeclaration.fromMap constructor

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

Implementation

factory AppVersionSnapshotAppVariableDeclaration.fromMap(Map<String, dynamic> map) {
  return AppVersionSnapshotAppVariableDeclaration(
    description: (() { final guardedValue = map['description']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    name: (() { final guardedValue = map['name']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    schemas: (() { final guardedValue = map['schemas']; if (guardedValue == null) return null; return pulumi.Input.fromValue(pulumi.Input.decodeList<AppVersionSnapshotAppVariableDeclarationSchema>(guardedValue, (value) => AppVersionSnapshotAppVariableDeclarationSchema.fromMap((value as Map).cast<String, dynamic>()))); })(),
  );
}