GetProjectServiceResult.fromMap constructor

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

Implementation

factory GetProjectServiceResult.fromMap(Map<String, dynamic> map) {
  return GetProjectServiceResult(
    checkIfServiceHasUsageOnDestroy: (() { final guardedValue = map['checkIfServiceHasUsageOnDestroy']; if (guardedValue == null) return null; return guardedValue as bool; })(),
    deletionPolicy: (() { final guardedValue = map['deletionPolicy']; if (guardedValue == null) return null; return guardedValue as String; })(),
    disableDependentServices: (() { final guardedValue = map['disableDependentServices']; if (guardedValue == null) return null; return guardedValue as bool; })(),
    disableOnDestroy: (() { final guardedValue = map['disableOnDestroy']; if (guardedValue == null) return null; return guardedValue as bool; })(),
    id: (() { final guardedValue = map['id']; if (guardedValue == null) return null; return guardedValue as String; })(),
    project: (() { final guardedValue = map['project']; if (guardedValue == null) return null; return guardedValue as String; })(),
    service: (() { final guardedValue = map['service']; if (guardedValue == null) return null; return guardedValue as String; })(),
  );
}