fromJson static method

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

Returns a new Dialect instance and imports its values from json if it's non-null, null if json is null.

Implementation

static Dialect? fromJson(Map<String, dynamic>? json) => json == null
    ? null
    : Dialect(
        header: json[r'header'],
        delimiter: json[r'delimiter'],
        annotations:
            DialectAnnotationsEnum.listFromJson(json[r'annotations']),
        commentPrefix: json[r'commentPrefix'],
        dateTimeFormat:
            DialectDateTimeFormatEnum.fromJson(json[r'dateTimeFormat']),
      );