Settings.fromJson constructor

Settings.fromJson(
  1. Object? j
)

Implementation

factory Settings.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return Settings(
    name: switch (json['name']) {
      null => '',
      Object $1 => decodeString($1),
    },
    kmsKeyName: switch (json['kmsKeyName']) {
      null => '',
      Object $1 => decodeString($1),
    },
    kmsServiceAccountId: switch (json['kmsServiceAccountId']) {
      null => '',
      Object $1 => decodeString($1),
    },
    storageLocation: switch (json['storageLocation']) {
      null => '',
      Object $1 => decodeString($1),
    },
    disableDefaultSink: switch (json['disableDefaultSink']) {
      null => false,
      Object $1 => decodeBool($1),
    },
  );
}