toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => <String, dynamic>{
      'message': message,
      if (locations != null)
        'locations': locations?.map((e) => e.toJson()).toList(),
      if (path != null) 'path': path,
      if (extensions != null) 'extensions': extensions,
      if (errorType != null) 'errorType': errorType,
      if (errorInfo != null) 'errorInfo': errorInfo,
    };