EnableManagedRotationRequest.fromJson constructor

EnableManagedRotationRequest.fromJson(
  1. Object? j
)

Implementation

factory EnableManagedRotationRequest.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return EnableManagedRotationRequest(
    parent: switch (json['parent']) {
      null => '',
      Object $1 => decodeString($1),
    },
    cloudSqlSingleUserCredentials:
        switch (json['cloudSqlSingleUserCredentials']) {
          null => null,
          Object $1 =>
            EnableManagedRotationRequest_CloudSqlsingleUserCredentials.fromJson(
              $1,
            ),
        },
  );
}