Sample.fromJson constructor

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

Implementation

factory Sample.fromJson(Map<String, dynamic> json) {
  return Sample(
    arn: json['arn'] as String?,
    type: (json['type'] as String?)?.toSampleType(),
    url: json['url'] as String?,
  );
}