Schema.parse constructor

Schema.parse(
  1. String schema
)

Parse schema from json string Can also parse raw string type like string

Implementation

factory Schema.parse(String schema) {
  return Schema(type: AvroType.parse(schema));
}