GrpcRouteMetadata.fromJson constructor

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

Implementation

factory GrpcRouteMetadata.fromJson(Map<String, dynamic> json) {
  return GrpcRouteMetadata(
    name: json['name'] as String,
    invert: json['invert'] as bool?,
    match: json['match'] != null
        ? GrpcRouteMetadataMatchMethod.fromJson(
            json['match'] as Map<String, dynamic>)
        : null,
  );
}