GrpcRouteMatch.fromJson constructor

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

Implementation

factory GrpcRouteMatch.fromJson(Map<String, dynamic> json) {
  return GrpcRouteMatch(
    metadata: (json['metadata'] as List?)
        ?.whereNotNull()
        .map((e) => GrpcRouteMetadata.fromJson(e as Map<String, dynamic>))
        .toList(),
    methodName: json['methodName'] as String?,
    serviceName: json['serviceName'] as String?,
  );
}