OtlpLogExport.fromJsonString constructor

OtlpLogExport.fromJsonString(
  1. String jsonStr
)

Parse directly from a JSON string (file / network / etc.).

Implementation

factory OtlpLogExport.fromJsonString(String jsonStr) =>
    OtlpLogExport.fromJson(json.decode(jsonStr) as Map<String, dynamic>);