fromJson static method

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

Implementation

static Outline? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return Outline(
    paths: List<ClosedVectorPath>.from(
      tdListFromJson(json['paths'])
          .map((item) => ClosedVectorPath.fromJson(tdMapFromJson(item)))
          .whereType<ClosedVectorPath>(),
    ),
  );
}