SRepresentationDeclaration.fromJson constructor

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

Implementation

factory SRepresentationDeclaration.fromJson(Map<String, dynamic> json) {
  return SRepresentationDeclaration(
    offset: json['offset'] as int,
    length: json['length'] as int,
    fieldName: json['fieldName'] as String,
    fieldType:
        SAstNodeFactory.fromJson(json['fieldType'] as Map<String, dynamic>?)
            as STypeAnnotation,
  );
}