toJson method Null safety

Map<String, Object> toJson()

Implementation

Map<String, Object> toJson() => <String, Object>{
      'format': format,
      'name': name,
      'offset': offset,
      'stride': stride,
      'size': size,
      'type': type
    };