Publishing.fromJson constructor

Publishing.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Publishing.fromJson(Map<String, dynamic> json) {
  return Publishing(
    methodSettings:
        decodeListMessage(json['methodSettings'], MethodSettings.fromJson) ??
        [],
    newIssueUri: json['newIssueUri'] ?? '',
    documentationUri: json['documentationUri'] ?? '',
    apiShortName: json['apiShortName'] ?? '',
    githubLabel: json['githubLabel'] ?? '',
    codeownerGithubTeams: decodeList(json['codeownerGithubTeams']) ?? [],
    docTagPrefix: json['docTagPrefix'] ?? '',
    organization:
        decodeEnum(
          json['organization'],
          ClientLibraryOrganization.fromJson,
        ) ??
        ClientLibraryOrganization.$default,
    librarySettings:
        decodeListMessage(
          json['librarySettings'],
          ClientLibrarySettings.fromJson,
        ) ??
        [],
    protoReferenceDocumentationUri:
        json['protoReferenceDocumentationUri'] ?? '',
    restReferenceDocumentationUri:
        json['restReferenceDocumentationUri'] ?? '',
  );
}