SurfaceSection.fromJson constructor

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

Implementation

factory SurfaceSection.fromJson(final Map<String, dynamic> json) {
  return SurfaceSection(
    startDistanceM: json['startDistanceM'],
    type: SurfaceTypeExtension.fromId(json['type']),
  );
}