Feature.fromJson constructor Null safety

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

Creates a Feature from a JSON object. (Not actually possible, as a base feature has no geometry)

Implementation

factory Feature.fromJson(Map<String, dynamic> json) {
  return Feature(
    properties: Map<String, dynamic>.from(json['properties']),
  );
}