GeodataConfig.fromJson constructor

GeodataConfig.fromJson(
  1. Object? json
)

Implementation

factory GeodataConfig.fromJson(Object? json) {
  final map = asJsonMap(json, 'geodata');
  return GeodataConfig(
    cron: map['cron'] as String?,
    outbound: map['outbound'] as String?,
    assets: map['assets'] == null
        ? null
        : asJsonList(map['assets'], GeodataAssetConfig.fromJson),
  );
}