json property

Map<String, dynamic> get json

Simplified metadata in json format where Option.some() and MapEntry are resolved into simpler types.

Suitable to store in .json file.

Implementation

Map<String, dynamic> get json => <String, dynamic>{
      'version': version,
      'metadata': metadataJson,
    };