MetadataStore.fromJson constructor

MetadataStore.fromJson(
  1. Object? j
)

Implementation

factory MetadataStore.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return MetadataStore(
    name: switch (json['name']) {
      null => '',
      Object $1 => decodeString($1),
    },
    createTime: switch (json['createTime']) {
      null => null,
      Object $1 => protobuf.Timestamp.fromJson($1),
    },
    updateTime: switch (json['updateTime']) {
      null => null,
      Object $1 => protobuf.Timestamp.fromJson($1),
    },
    encryptionSpec: switch (json['encryptionSpec']) {
      null => null,
      Object $1 => EncryptionSpec.fromJson($1),
    },
    description: switch (json['description']) {
      null => '',
      Object $1 => decodeString($1),
    },
    state: switch (json['state']) {
      null => null,
      Object $1 => MetadataStore_MetadataStoreState.fromJson($1),
    },
    dataplexConfig: switch (json['dataplexConfig']) {
      null => null,
      Object $1 => MetadataStore_DataplexConfig.fromJson($1),
    },
  );
}