DocProperty.fromJson constructor

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

Implementation

factory DocProperty.fromJson(Map<String, dynamic> json) {
  return DocProperty(
    name: json['name'] as String,
    type: json['type'] as String,
    description: json['description'] as String,
    features: (json['features'] as List).map((item) => item as String).toList(),
  );
}