parseStringProperties static method

Map<String, dynamic> parseStringProperties(
  1. Map<String, String>? stringProperties
)

Parse stringProperties to properties values.

Implementation

static Map<String, dynamic> parseStringProperties(
    Map<String, String>? stringProperties) {
  if (stringProperties == null || stringProperties.isEmpty) {
    return <String, dynamic>{};
  }
  return stringProperties.map((k, v) => MapEntry(k, parseValue(v)));
}