ContentProperty.fromJson constructor

ContentProperty.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory ContentProperty.fromJson(Map<String, Object?> json) {
  return ContentProperty(
    id: json[r'id'] as String?,
    key: json[r'key'] as String?,
    value: json[r'value'],
    version: json[r'version'] != null
        ? Version.fromJson(json[r'version']! as Map<String, Object?>)
        : null,
  );
}