Documentation.fromJson constructor

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

Implementation

factory Documentation.fromJson(Map<String, dynamic> json) {
  return Documentation(
    summary: json['summary'] ?? '',
    pages: decodeListMessage(json['pages'], Page.fromJson) ?? [],
    rules: decodeListMessage(json['rules'], DocumentationRule.fromJson) ?? [],
    documentationRootUrl: json['documentationRootUrl'] ?? '',
    serviceRootUrl: json['serviceRootUrl'] ?? '',
    overview: json['overview'] ?? '',
  );
}